Skip to content

Add support for leaf2 and leaf4 on Intel's x86 arch#80

Merged
gchatelet merged 8 commits into
google:masterfrom
fexolm:leaf4
Jul 2, 2019
Merged

Add support for leaf2 and leaf4 on Intel's x86 arch#80
gchatelet merged 8 commits into
google:masterfrom
fexolm:leaf4

Conversation

@fexolm

@fexolm fexolm commented Jun 23, 2019

Copy link
Copy Markdown
Contributor

No description provided.

@fexolm fexolm changed the title Add support for leaf4 on Intel's x86 arch Add support for leaf2 and leaf4 on Intel's x86 arch Jun 25, 2019
Comment thread src/cpuinfo_x86.c
return MakeX86CacheLevelInfo(-1, PREFETCH, 128, -1, -1, -1, 0);
case 0xFF:
return MakeX86CacheLevelInfo(-1, EMPTY, -1, -1, -1, -1, 0);
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wouldn't it be possible to make a table of structs out of it that hosts the parameters?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wouldn't it be possible to make a table of structs out of it that hosts the parameters?

I fail to see how a table of structs makes it simpler. Once you have the table you still need to index it.
Did I miss something?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure how it can be simplified. If you have any suggestions, I can implement them.

Comment thread include/cpuinfo_x86.h Outdated
Comment thread include/cpuinfo_x86.h Outdated
Comment thread include/cpuinfo_x86.h Outdated
Comment thread include/cpuinfo_x86.h Outdated
Comment thread src/cpuinfo_x86.c Outdated
Comment thread src/cpuinfo_x86.c Outdated
Comment thread src/cpuinfo_x86.c Outdated
Comment thread src/cpuinfo_x86.c Outdated
Comment thread CMakeLists.txt
Comment thread src/cpuinfo_x86.c Outdated
@fexolm

fexolm commented Jun 27, 2019

Copy link
Copy Markdown
Contributor Author

@gchatelet, @psiegl Thanks for the review. Must be fixed now. PTAL.

Comment thread include/cpu_features_common.h Outdated
Comment thread include/cpu_features_common.h
Comment thread include/cpu_features_common.h
Comment thread include/cpu_features_common.h Outdated
Comment thread test/cpuinfo_x86_test.cc
Comment thread include/cpuinfo_x86.h Outdated
Comment thread src/cpuinfo_x86.c Outdated
@fexolm

fexolm commented Jul 2, 2019

Copy link
Copy Markdown
Contributor Author

@gchatelet, fixed, PTAL

@gchatelet

Copy link
Copy Markdown
Collaborator

@gchatelet, fixed, PTAL

LGTM. Thx!

@gchatelet
gchatelet merged commit 653d581 into google:master Jul 2, 2019
@gchatelet gchatelet added this to the v0.4.0 milestone Jul 11, 2019
@fexolm fexolm mentioned this pull request Jul 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants